

       <div id="WxAutoReply-mine-list">
	       <div class="row">
	       {{loop $datalist $rk $item}}
	       	<div class="col-md-12">
	       		<div class="appmsg article-msg clearfix" id="article-msg-{{$item['WxAutoReply']['id']}}"  data-id="{{$item['WxAutoReply']['id']}}">
		       		<div class="appmsg_content">
		       			<small class="pull-right" style="color:#999;">{{$item['WxAutoReply']['msg_type']}}</small>
			       		<p class="title">
			       			{{$item['WxAutoReply']['keyword']}}
			       		</p>
			       		
			       		{{if $item['WxAutoReply']['url']}}
		       				<p><a href="{{$item['WxAutoReply']['url']}}" data-toggle="tooltip" data-container="body" title="查看原文" target="_blank">{{$item['WxAutoReply']['name']}}</a></p>
		       			{{elseif $item['WxAutoReply']['name']}}
		       				<p>{{$item['WxAutoReply']['name']}}</p>
		       			{{elseif $item['WxAutoReply']['summary']}}
		       				<p style="white-space: pre-line;">{{$item['WxAutoReply']['summary']}}</p>
		       			{{/if}}
			       			
			       		{{if $item['WxAutoReply']['coverimg']}}
			       			{{$this->Html->image($item['WxAutoReply']['coverimg'],array('class'=>'cover'))}}
			       		{{/if}}
			       		
			       		{{if $item['WxAutoReply']['msg_type'] == 'image' && $item['WxAutoReply']['media_id'] }}
			       			{{$this->Html->image('/wx_msgs/wechat_thumb?mid='.$item['WxAutoReply']['media_id'],array('class'=>'cover'))}}
			       		{{/if}}
			       		
			       		{{if $rk==0}}
			       			<p class="appmsg_desc summary">{{usubstr($item['WxAutoReply']['summary'],0,32)}}</p>
			       		{{/if}}
		       		</div>
		       		<div class="appmsg_opr clearfix">
		       			{{$this->Html->link('<i data-toggle="tooltip" target="_blank"  data-placement="top" title="'.__('Edit').'" class="fa fa-edit"></i>', array('controller'=>'wx_auto_replies','action' => 'edit', $item['WxAutoReply']['id']),array('class'=>'col-xs-6 opr-edit','target'=>'_blank','data-id'=>$item['WxAutoReply']['id'],'escape'=>false))}}
		       			<a href="javascript:void(0)" data-url="{{$this->Html->url('/wx_auto_replies/delete/'.$item['WxAutoReply']['id'])}}" class="col-xs-6 delete-pop" data-container="body" 
		       			data-content="确定删除此素材？"><i data-toggle="tooltip" data-placement="top" 
		       			 title="{{__('Delete')}}" class="fa fa-trash"></i></a>
		       		</div>
	       		</div>
	       	</div>
	  		{{/loop}}
	  		
	    	</div>
	    	
	    	
	  		{{if empty($datalist)}}
	  			未设置
	  		{{/if}}
    	</div>
       